﻿@{ ViewBag.Title = "OrderComplaint";}
@model IEnumerable<Himall.Core.Plugins.PluginInfo>
<script src="~/Scripts/jquery.hiMallDatagrid.js"></script>
<script src="~/Scripts/jquery.himallLinkage.nocreate.js"></script>
<script src="~/Scripts/jquery.placeholder.min.js"></script>
<script src="~/Scripts/bootstrap.autocomplete.js"></script>
<script src="~/Areas/Admin/Scripts/orderComplaintManagement.js"></script>

<link rel="stylesheet" type="text/css" href="~/Content/bootstrap-datetimepicker.min.css">
<script type="text/javascript" src="~/Scripts/bootstrap-datetimepicker.js"></script>
<script type="text/javascript" src="~/Scripts/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript">
    $(function () {
        $(".start_datetime").datetimepicker({
            language: 'zh-CN',
            format: 'yyyy-mm-dd',
            autoclose: true,
            weekStart: 1,
            minView: 2
        });
        $(".end_datetime").datetimepicker({
            language: 'zh-CN',
            format: 'yyyy-mm-dd',
            autoclose: true,
            weekStart: 1,
            minView: 2
        });
        $(".start_datetime").click(function () {
            $('.end_datetime').datetimepicker('show');
        });
        $(".end_datetime").click(function () {
            $('.start_datetime').datetimepicker('show');
        });
		$('.start_datetime').on('changeDate', function(){
			if($(".end_datetime").val()){
				if($(".start_datetime").val()>$(".end_datetime").val()){
					$('.end_datetime').val($(".start_datetime").val());
				}
			}
			
			$('.end_datetime').datetimepicker('setStartDate', $(".start_datetime").val());
		});


    });
</script> 

<div class="container">
    <ul class="nav nav-tabs-custom clearfix">
        <strong>订单投诉</strong>
        <li type="statusTab"><a>所有记录</a></li>   
        <li value="3" type="statusTab"><a>待仲裁</a></li>
        <em class="primary-btn">
            <span class="glyphicon glyphicon-question-sign"></span>
            <div class="primary">
                <h3>温馨提示：</h3>
                <span>*</span><p>平台管理员能够介入有纠纷的投诉并进行协调处理</p>
            </div>
        </em>
    </ul>

    <div class="search-box" id="search-box">
        <form class="custom-inline" role="form">
            <div class="form-group">
                <label class="label-inline" for="">开始日期</label>
                <input id="inputStartDate" class="form-control input-ssm start_datetime" type="text" >
            </div>
            <div class="form-group">
                <label class="label-inline" for="">结束日期</label>
                <input id="inputEndDate" class="form-control input-ssm end_datetime" type="text" >
            </div>
            <div class="form-group">
                <label class="label-inline" for="">订单编号</label>
                <input class="form-control input-ssm" type="text" id="txtOrderId">
            </div>
            <div class="form-group">
                <label class="label-inline" for="">店铺名称</label>
                <input class="form-control input-ssm" type="text" id="txtShopName">
            </div>            
            <div class="form-group">
                <label class="label-inline" for="">投诉会员</label>
                <input class="form-control input-ssm" type="text" id="txtUserName">
            </div>
            <div class="form-group">
                <label class="label-inline" for="">状态</label>
                <select class="form-control input-ssm" id="slelctStatus">
                    <option>状态</option>
                    <option value="1">待处理</option>
                    <option value="2">已处理</option>
                    <option value="3">有纠纷</option>
                    <option value="4">已结束</option>
                </select>
            </div>
            <button type="button" id="searchButton" class="btn btn-primary btn-sm">搜 索</button>
        </form>
    </div>
    <table id="list" class="table"></table>
</div>